﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Follow.Model;
using Follow.DataAccess;
using Follow.Common;

namespace Follow.Business
{
    public class ViewFollowBO
    {
        public IList<ViewFollowUp> findAll()
        {
            ViewFollowUpDAO dao = new ViewFollowUpDAO();
            return dao.findAll();
        }

        public ViewFollowUp findByIDProposta(string idProposta)
        {
            ViewFollowUpDAO dao = new ViewFollowUpDAO();
            return dao.findByIDProposta(idProposta);
        }

        public IList<ViewFollowUp> findByFuncionario(string idfuncionario, bool gestor, int status)
        {
            ViewFollowUpDAO dao = new ViewFollowUpDAO();
            return dao.findByFuncionario(idfuncionario, gestor, status);
        }

        public IList<ViewFollowUp> findByStatusProposta(string idfuncionario, bool gestor, int idstatus)
        {
            ViewFollowUpDAO dao = new ViewFollowUpDAO();
            return dao.findByStatusProposta(idfuncionario, gestor, idstatus);
        }


        public IList<ViewFollowUp> findByContato(Int32 idcliente, int status)
        {
            ViewFollowUpDAO dao = new ViewFollowUpDAO();
            return dao.findByContato(idcliente, status);
        }

        public IList<ViewFollowUp> findPropostaPendente(int idfuncionario, bool gestor)
        {
            ViewFollowUpDAO dao = new ViewFollowUpDAO();
            return dao.findPropostaPendente(idfuncionario,gestor);
        }

        public IList<ViewFollowUp> findPropostaPendenteContato(int idcliente)
        {
            ViewFollowUpDAO dao = new ViewFollowUpDAO();
            return dao.findPropostaPendenteContato(idcliente);
        }

    }
}